from functools import reduce

# list_x = [1, 3, 4, 5, 6, 7]
#
# total = reduce(lambda x, y: x + y, list_x)
# print(total)


list_y = ['1', '2', '3', '4', '5']
res = reduce(lambda x, y: x + y, list_y, 'aaa')  # 第三个参数是初始值

print(res)

res1 = filter(lambda x: True if x > '3' else False, list_y)
print(list(res1))

a = 3
b = 5
res2 = a if a > b else b
print(res2)
